package cn.edu.java.stream;

public class LambdaDemo {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName() + ": Runnable 函数式接口实例！");
            }
        }).start();

        new Thread(() -> {
            System.out.println(Thread.currentThread().getName() + ": lambda   表示函数式接口！");
        }).start();
    }
}
